<?php

class Silk_Http_Request {

    const METHOD_POST   = 'POST';
    const METHOD_GET    = 'GET';
    const METHOD_PUT    = 'PUT';
    const METHOD_DELETE = 'DELETE';

    protected $controller = null;
    protected $action     = null;
    protected $parameters = array();
    protected $method     = null;
    protected $uri	  = null;

    public function __construct($pUri){

	$this->uri	  = $pUri;

	$this->method     = strtoupper($_SERVER['REQUEST_METHOD']);

    }

    public function getUri(){

	return $this->uri;
    }

    public function getRequestMethod(){

	return $this->method;

    }

    public function isPost(){

	return $this->getRequestMethod() == self::METHOD_POST;

    }

    public function isGet(){

	return $this->getRequestMethod() == self::METHOD_GET;

    }
}

?>